<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Webcat</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>
<script type="text/javascript">
<!--
window.onload = function() {
    var url = null;
    var requestURI = window.location.pathname;

    /**
     * 不使用缓存的页面
     */
    if(window.location.href.indexOf("?r=") < 0) {
        window.location.href = requestURI + "?r=" + new Date().getTime();
        return;
    }

    /**
     * URL: ("", "/", "${contextPath}")
     */
    if(requestURI == "") {
        url = requestURI + "/webcat/index.html";
    }
    else if(requestURI.length > 0 && requestURI.charAt(requestURI.length - 1) == "/") {
        url = requestURI + "webcat/index.html";
    }
    else {
        url = requestURI.replace("/index.html", "/webcat/index.html");
    }

    try {
        document.body.innerHTML = "<div>正在加载...</div><div>如果页面没有响应，请 <a style=\"color: #ff0000;\" href=\"" + url + "\">点击这里</a> 进入。</div>";
    }
    catch(e) {
    }
    window.top.location.href = url;
};
//-->
</script>
</head>
<body>
</body>
</html>
